<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<s:layout-render name="/layout.jsp" title="Main">
    <s:useActionBean var="applicationAB" beanclass="cz.muni.fi.pa165.creatures.web.ApplicationActionBean"/>
    <s:layout-component name="menu"></s:layout-component>
    <s:layout-component name="main_content"> 
        <div class="main-content">
            <div class="content">
                <img src="${pageContext.request.contextPath}/images/banner.png" alt="Banner" id="banner"/>
                <c:choose>
                    <c:when test="${applicationAB.context.user != null}">
                        <f:message key="index.hello"/> ${applicationAB.context.user.name}!
                    </c:when>
                    <c:otherwise>
                        <f:message key="index.welcome_message"/>
                    </c:otherwise>
                </c:choose>
            </div>
        </div>
    </s:layout-component>
</s:layout-render>
